<!--#include file="../nav/top.php" -->
<style type="text/css">
.toprightbg{
background:url(/misc/images/pages/right_huodong.jpg) left top no-repeat;
width:290px;
height:235px;
}
.mycontent_title_c{
background:url(/misc/images/pages/title_cuxiaoxinxi.jpg) left top no-repeat;
}

 
 
 
table.cuxiaotb{
border-collapse:collapse;
width:100%;
}
table.cuxiaotb td{
text-align:left;
vertical-align:top;
}


.cxboxbig{
background:url(/misc/images/home/cuxiaobigbg.jpg) top left no-repeat;
height:287px;
width:251px;
overflow:hidden;
}

.cxboxbig_title{
text-align:center;
margin:0px 0 15px 0;
color:#79BF3A;
font-size:20px;
padding-top:20px;
}
.cxboxbig_pic{
text-align:center;
}


.cxbox{
background:url(/misc/images/home/cuxiaosmallbg.jpg) top left no-repeat;
height:191px;
width:168px;
overflow:hidden;
float:left;
}

.cxbox_title{
text-align:center;
margin:0px 0 5px 0;
color:#79BF3A;
font-size:14px;
padding-top:20px;
}
.cxbox_pic{
text-align:center;
}
</style> 
<div class="toprightbg_out">
	<div class="toprightbg">	</div>
</div>
<div class="mycontent">

	<div class="mycontent_title_out">
		<div class="mycontent_title_c">
			<div class="mycontent_title_h1">促销信息</div>
			<div class="mycontent_title_h2">Sales</div>
		</div>
		<div class="mycontent_title_line">		</div>
	</div>
	
	<?PHP
	if(count($rs_list) > 0){
	?>
	<div style="margin:10px auto;width:700px;">
		<table class="cuxiaotb">
			<Tr>
				<td style="width:300px;">
					<div class="cxboxbig">
						<div class="cxboxbig_title" id="page_title">{$rs_one.title}</div>
						<div class="cxboxbig_pic"><img  id="page_logo" src="<?PHP echo $themeUrl.$rs_one['logo']; ?>" style="width:200px;height:200px;" /></div>
					</div>
				</td>
				<td  id="page_content">
					{$rs_one.content}
				</td>
			</Tr>
		</table>
	</div>
	<div class="hengtiao"></div>
	<div style="margin:10px auto;width:700px;position:relative">
		<?PHP
		foreach($rs_list as $k=>$v){
			echo '
			<div class="cxbox">
				<div class="cxbox_title">'.$v['title'].'</div>
				<div class="cxbox_pic"><a href="javascript:void(0)" onclick="fnChange('.$k.')"><img src="'.$themeUrl.$v['logo'].'" style="width:135px;height:135px;" /></a></div>
			</div>
			';
		}
		?>
		<div class="clear"></div>
	</div>
	<?PHP
	}
	?>
	<div style="height:50px;"></div>
</div>
<script type="text/javascript">
var rs_list = {json_encode($rs_list)};
function fnChange(k){
	var obj = rs_list[k];
	$('#page_title').html(obj.title);
	$('#page_content').html(obj.content);
	$('#page_logo').attr('src','');
	$('#page_logo').attr('src',baseUrl+obj.logo);
	
}
</script>
<!--#include file="../nav/bottom.php" -->